package day1.array;

import org.junit.Test;

import java.util.Arrays;

/**
 * @author joker
 * @date 2022/4/11 0011 - 0:03
 */
public class Test01 {

    public static void main(String[] args) {
        int[] arr1 = new int[]{1,2,3,4,5,6};
        int[] arr2 = new int[6];
        int[] arr3 = {1,2,3,4,5,6};
        int[][] arr4=new int[2][6];
        int[][] arr5=new int[][]{{1,2,3,4,5,6},{7,8,9,10,11,12}};
        int[][] arr6=new int[2][];
        System.out.println(arr5[0][1]);
        System.out.println(Arrays.toString(arr1));
        System.out.println(Arrays.toString(arr5[0])+Arrays.toString(arr5[1]));
        System.out.println(Arrays.toString(arr2));
        Arrays.fill(arr2,1);
        Arrays.fill(arr1,2);
        System.out.println(Arrays.toString(arr2));
        System.out.println(Arrays.toString(arr1));
        System.out.println((int) (Math.random() * (99 - 10 + 1) + 10));
        int num1 = 8;
        System.out.println(9|3);
//        method1("a","ab");
        System.out.println(8/3);
    }

    static void method1(String ... strs){
        System.out.println(strs[1]);
        System.out.println(strs[0]);

    }

     void method1(int ... ints){
        System.out.println(ints[1]);
        System.out.println(ints[0]);
         System.out.println(Math.pow(2,15));
    }
    @Test
    public void test1(){
        char a='a';
        char b = (char) (67+a);
        System.out.println(a);
        System.out.println(b);
        for (int i = 0; i <200 ; i++) {
            char c= (char) i;
            System.out.println(c);
        }


    }
    @Test
    public void test2(){
        byte a=97;
        byte b='=';
        byte[] by=new byte[127];
        for (int i = 0; i < 127; i++) {
            byte c= (byte) i;
            

        }
    }
    @Test
    public void test3(){
        String s="abc";
        char[] chars = s.toCharArray();
        System.out.println('a' > 'b');

    }

}
